﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Singleton
{
    public class SingletonClass
    {
        public static SingletonClass sc = null;
        private  SingletonClass()
        {
 
        }
        public static SingletonClass GetInstance()
        {
            if (sc == null)
            {
                sc = new SingletonClass();
            }
            return sc;
        }
    }
}
